﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;

namespace leodesigner
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool instantiated;

            Mutex mutex = new Mutex(true, "UniqueID", out instantiated);

            if (!instantiated)
            {

                MessageBox.Show("Leo Designer Already Running","You drive me crazy...");

                return;

            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
//            Application.Run(new designer());

            new designer();
            GC.KeepAlive(mutex);
        }
    }
}
